﻿$(document).ready(function () {
    $(".dialog-delete").dialog({ autoOpen: false, modal: true, resizable: false });
    $(".submit-delete").click(function () {
        $(".dialog-delete").dialog('open');
    });

    $("#user-context-menu").click(function () {
        $(".user-popup").toggle();
    });

    $("body").click(function () {
        pos = $(this).attr("id")
        $(".user-popup").toggle(false);
    });

    $('#user-context-menu').click(function (event) {
        event.stopPropagation();
    });
});

function Redirect(url) {
    location.href = url;
}